
<?php if (validation_errors()) : ?>
<div class="notification error">
	<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
<?php // Change the css classes to suit your needs    
if( isset($odds) ) {
	$odds = (array)$odds;
}
$id = isset($odds['odds_id']) ? "/".$odds['odds_id'] : '';
?>
<?php echo form_open($this->uri->uri_string(), 'class="constrained ajax-form"'); ?>
<?php if(isset($odds['odds_id'])): ?><input id="odds_id" type="hidden" name="odds_id" value="<?php echo $odds['odds_id'];?>"  /><?php endif;?>
<div>
        <?php echo form_label('Name', 'name'); ?>
        <input id="name" type="text" name="name" maxlength="45" value="<?php echo set_value('name', isset($odds['name']) ? $odds['name'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Value Code', 'value_code'); ?>
        <input id="value_code" type="text" name="value_code" maxlength="45" value="<?php echo set_value('value_code', isset($odds['value_code']) ? $odds['value_code'] : ''); ?>"  />
</div>



	<div class="text-right">
		<br/>
		<input type="submit" name="submit" value="Edit odds" /> or <?php echo anchor(SITE_AREA .'/developer/odds', lang('odds_cancel')); ?>
	</div>
	<?php echo form_close(); ?>

	<div class="box delete rounded">
		<a class="button" id="delete-me" href="<?php echo site_url(SITE_AREA .'/developer/odds/delete/'. $id); ?>" onclick="return confirm('<?php echo lang('odds_delete_confirm'); ?>')"><?php echo lang('odds_delete_record'); ?></a>
		
		<h3><?php echo lang('odds_delete_record'); ?></h3>
		
		<p><?php echo lang('odds_edit_text'); ?></p>
	</div>
